package ternary;

public class Test {
	public static void main(String[] args) {
		int num1 = 10;
		int num2 = 14;
		int max;
		int min;
		max = (num1 - num2) > 0 ? num1 : num2;
		min = (num1 - num2) < 0 ? num1 : num2;
		System.out.println(max);
		System.out.println(min);
		String address = "小平岛";
		String name = "仲福维";
		//System.out.printf("年龄%d，姓名是%c,体重是%f，住址%c，是否毕业%b", 23, name, 85.5f, address, true);
		int age = 23;
		float weight = 85.5f;
		boolean isGraduation = true;
		System.out.println("年龄是" + age +"姓名是" + name +"体重" + weight + "住址" + address +"是否毕业" + isGraduation);
	}
}
